package com.sample.dubbo.demo.consumer;

import com.sample.dubbo.demo.consumer.config.ConsumerDubboConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

import java.io.IOException;

public class ConsumerApplication {
    public static void main(String[] args) throws IOException, InterruptedException {
        AbstractApplicationContext ctx = new AnnotationConfigApplicationContext(ConsumerDubboConfiguration.class);
//        ctx.refresh();//不使用register方法时，不需要refresh
        ctx.start();
    }
}